<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title> - 设置</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__PUBLIC__/admin/favicon.ico">
    <link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="__PUBLIC__/admin/css/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="__PUBLIC__/admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="panel panel-default pull-left" style="width: 100%;">
                <div class="panel-body">
                    <div class="page-header" style="margin-top: 0px;">
                        <h4>用户管理</h4>
                    </div>
                    <form method="post" action="setting_user" name="" enctype="multipart/form-data">
                        <div class="well form-inline panel-well">
                            姓名:
                            <input type="text" id="name" name="name" class="form-control" value="">
                            <input type="submit" class="btn btn-primary" value="搜索">
                            <a id="btnClear" href="{:URL('set/setting_user')}" class="btn btn-danger">清除</a>
                        </div>
                        <div class="table-actions">
                            <a href="{:url('News/newuser')}" id="add" name="add" class="btn  btn-primary  btn-sm">添加</a>
                        </div>
                        <br>
                        <table class="table table-hover table-bordered table-list">
                            <thead>
                                <tr>
                                    <th style="text-align: center;width:3%" ></th>
                                   <!-- <th style="text-align: center; width:2%">
                                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                                    </th>-->
                                    <th style="text-align: center;width:10%">用户名</th>
                                    <th style="text-align: center;width:10%">姓名</th>
                                    <th style="text-align: center;width:10%">所属部门</th>
                                    <th style="text-align: center;width:8%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- 开始循环 -->

                                {volist name="list" id="vo"}
                                    <tr  style="text-align: center;">
                                        <td class="js-num"></td>
                                        <!--<td class="ay-center">
                                            <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="chkItem" data-value="53">
                                        </td>-->
                                        <td>{$vo.name}</td>
                                        <td>{$vo.zname}</td>
                                        <td>{$vo.section}</td>
                                        <td>
                                            <a href="{:URL('set/newinfo',array('id'=>$vo.id))}">[编辑]</a>
                                            <a  href="{:URL('set/setting_user',array('id'=>$vo.id))}"   class="js-ajax-page-delete" id="aaaa" current-page="1">[删除]</a>
                                        </td>
                                    </tr>
                                {/volist}
                            </tbody>
                        </table>

                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- layer javascript -->
    <script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
    <script src="__PUBLIC__/admin/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        /* $('#add').click(function () {
            layer.open({
                type: 2,
                title: '录入信息',
                area: ['80%', '80%'],
                content: '{:URL('news/newuser')}'
            });
        }) */
        // 点击删除
       /*  $('.js-ajax-page-delete').click(function () {
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
            	
                swal("删除成功！", "您已经永久删除了这条信息。", "success");
            });
        }); */
    </script>
</body>

</html>
<script>
$(function () {
    // 编号自增
    for (var ii = 0; ii < $(".js-num").length; ii++) {
        $('.js-num').eq(ii).text(ii + 1);
    }
    // 全选
    $('.js-check-all-btn').click(function () {
        $('.js-check-all').prop('checked', this.checked);
        // 设置属性和值：
        // $(selector).prop(property, value)
    });
})

</script>